from langchain_mcp_adapter import MutiServerMCPClient

client = MutiServerMCPClient(
    {
        "send_email":{
            "transport": "stdio",
            "command":"python3",
            "args": ["path/to/send_email.py"]
        }
    }
)

tools = client.get_tools()
agent = create_agent(
    "modelName",
    tools
)

call_response  = await agent.ainvoke(
    {
        "message": [
            [
                {
                    "role": "user",
                    "content": "send_email to recipient@example.com subject Test Email"
                }
            ]
        ]
    }
)